.class public Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;
.super Ljava/lang/Object;
.source "MultiThreadCopy.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "a"
.end annotation


# instance fields
.field private a:Les/s80;

.field private b:Landroid/os/ConditionVariable;

.field final synthetic c:Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;Les/s80;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->c:Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance p1, Landroid/os/ConditionVariable;

    invoke-direct {p1}, Landroid/os/ConditionVariable;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->b:Landroid/os/ConditionVariable;

    .line 3
    iput-object p2, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->a:Les/s80;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;)Landroid/os/ConditionVariable;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->b:Landroid/os/ConditionVariable;

    return-object p0
.end method


# virtual methods
.method public run()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->a:Les/s80;

    instance-of v1, v0, Les/d70;

    if-eqz v1, :cond_0

    .line 2
    new-instance v2, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a$a;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a$a;-><init>(Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;)V

    invoke-virtual {v0, v2}, Les/s80;->a(Les/z80;)V

    .line 3
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->c:Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;

    invoke-static {v0}, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;->a(Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;)Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$SegmentInfos;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$SegmentInfos;->isChanged()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->c:Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;

    invoke-static {v0}, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;->b(Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;)V

    :cond_1
    if-eqz v1, :cond_2

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->a:Les/s80;

    invoke-virtual {v0}, Les/s80;->m()I

    move-result v0

    const/4 v2, 0x3

    if-ne v0, v2, :cond_2

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->b:Landroid/os/ConditionVariable;

    invoke-virtual {v0}, Landroid/os/ConditionVariable;->block()V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy$a;->b:Landroid/os/ConditionVariable;

    invoke-virtual {v0}, Landroid/os/ConditionVariable;->close()V

    :cond_2
    const-wide/16 v2, 0x2710

    .line 8
    :try_start_0
    invoke-static {v2, v3}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    return-void
.end method
